package com.ilxqx.framework.system.po;

import lombok.Data;

import java.io.Serializable;

/**
 * KV键值对类
 * @author venus
 */
@Data
public class ItemEntry implements Serializable {

    private static final long serialVersionUID = -6613338640409182841L;

    /**
     * 键
     */
    private String key;

    /**
     * 值
     */
    private String value;

    public ItemEntry() {
    }

    public ItemEntry(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static ItemEntry of(String key, String value) {
        return new ItemEntry(key, value);
    }

}
